/********************************************************************************
 *      Copyright:  (C) 2025 LingYun IoT System Studio
 *                  All rights reserved.
 *
 *       Filename:  sqlite_server.h
 *    Description:  This file is the head file about server sqlite function 
 *
 *        Version:  1.0.0(25/03/22)
 *         Author:  Huang Xiangming<huangxiangming@gmail.com>
 *      ChangeLog:  1, Release initial version on "25/03/22 14:12:26"
 *                 
 ********************************************************************************/
//包含保护
#ifndef SQLITESERVER_H
#define SQLITESERVER_H

#include "server_function.h"

//数据库初始化
int sqlite_init(void);

//关闭数据库
void sqlite_close(void);

//查询表存在
int sqlite_table(char *table_name);
static int table_callback(void *exec_para, int n_column, char **column_value, char **column_name);

//数据存入
int sqlite_inset(data_t *data);

#endif
